#include "stdafx.h"
#include "StarSystem.h"

StarSystem::StarSystem(string nameP, string descriptionP, string inClusterP, int IDP){
	name = nameP;
	description =descriptionP;
	inCluster = inClusterP;
	ID = IDP;
	beenVisited = false;

	const string direcText = "nsew";
	for (int i=0; i<TOTALDIRECTIONS; i++)
	{
		adjSystems[0][i]=direcText[i];
		adjSystems[1][i]="0";
	}
}

bool StarSystem::SystemInAdjList(string sysName) 
{
	for (int i=0; i<TOTALDIRECTIONS; i++) {
		if (adjSystems[1][i]==sysName) {
			return true;
		}
	}
	return false;
}

StarSystem::StarSystem() {
	cout<<endl;
}

